package com.demo.core.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.demo.base.model.WebUserForCompany;
import com.demo.core.dao.WebUserForCompanyDao;

@Transactional
@Service
public class WebUserForCompanyService {

	@Autowired
	private WebUserForCompanyDao webUserForCompanyDao;
	
	/**
	 * 网站用户登录（企业）
	 * @param loginName
	 * @param password
	 * @return
	 */
	public WebUserForCompany authWebUserForCompany(String loginName,String password){
		
		return webUserForCompanyDao.authWebUserForCompany(loginName, password);
	}
	
	/**
	 * 新增企业用户
	 * @param webUserForCompany
	 */
	public void addWebUserForCompany(WebUserForCompany webUserForCompany){
		
		webUserForCompanyDao.add(webUserForCompany);
	}
}
